uniform sampler2D texture;
uniform int time;

void main()
{
	float time = float(time) / 10.0;
	vec4 tex = texture2D(texture, gl_TexCoord[0].xy);
	float brightness = tex.g * sin(tex.r * time);
	gl_FragColor = vec4(brightness, brightness, brightness, 1.0);
}
